package com.study.mall.thread;

public class MyThread extends Thread{

    @Override
    public void run() {
        System.out.println("MyThread.run");
        System.out.println(Thread.currentThread().getName());

        synchronized (this) {
            try {
                wait();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }

    }
}
